package com.dura.common.util;

import com.dura.common.model.StandardSubmit;

import java.util.concurrent.ConcurrentHashMap;

/**
 * 用于存储CMPP 发送短信时，临时存储
 * @version 1.0
 * @Author 振鹏
 * @Date 2025/3/19 15:21
 * @注释
 */
public class CMPPSubmitRepoMapUtil {

    private static ConcurrentHashMap<String, StandardSubmit> map=new ConcurrentHashMap<>();

    public static void put(int sequence,StandardSubmit submit){
        map.put(sequence+"",submit);
    }

    public static StandardSubmit get(int sequence){
        return map.get(sequence+"");
    }

    public static StandardSubmit remove(int sequence){
        return map.remove(sequence + "");
    }
}
